package com.atstudy.headline.web.app.service.impl;

import com.atstudy.headline.entity.MediaResources;
import com.atstudy.headline.web.app.mapper.MediaResourcesMapper;
import com.atstudy.headline.web.app.service.MediaResourcesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MediaResourcesServiceImpl
        extends ServiceImpl<MediaResourcesMapper, MediaResources>  // 关键继承
        implements MediaResourcesService {

    @Autowired
    private MediaResourcesMapper mediaMapper;

    @Override
    public List<MediaResources> list() {
        return mediaMapper.selectList(null);
    }

    // 不再需要手动实现saveBatch()
    // ServiceImpl基类已提供默认实现
}
